﻿#region File Description
// EpicLeadManager
// EpicLeadManager
// Guild.cs
#endregion

#region Using References
using System;
using System.Collections.Generic;
using SQLite;

#endregion

namespace EpicLeadManager.Models
{
    public class Guild
    {
        #region Fields & Properties
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }

        [Column("Name")]
        public string Name { get; set; }

        [Column("ShotName"), MaxLength(4)]
        public string ShortName { get; set; }

        [Column("PlayersId")]
        public int PlayersId { get; set; }
        #endregion

        #region Constructors
        public Guild()
        {
        }

        public Guild(string name)
        {
            Name = name;
        }

        public Guild(string name, string shortName): this (name)
        {
            ShortName = shortName;
        }
        #endregion

        #region Public Methods
        public override string ToString()
        {
            return String.Format("Id: {0}, Name: {1}, ShortName: {2}", Id, Name, ShortName);
        }
        #endregion
    }
}